﻿using WeBlog.Helpers;
using WeBlog.Interfaces;
using WeBlog.Models;

namespace WeBlog
{
    public static class Application
    {
        private static WidgetManager _widgetManager;
        public static WidgetManager WidgetManager 
        { 
            get
            {
                if (_widgetManager != null) return _widgetManager;

                _widgetManager = new WidgetManager(FileManager.WidgetDirectory);
                return _widgetManager;
            }        
        }                        
    }
}